package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.ProductStockTmp;
import com.weixing.mall.provider.model.query.act.ProductStockTmpQuery;
import com.weixing.mall.provider.model.vo.act.ProductStockTmpVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 仓库模块-商品库存表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface IProductStockTmpService extends IService<ProductStockTmp> {

    IPage<ProductStockTmpVo> selectByDepotId(Page page, Long depotId);
    void resetStock(Long depotId);

    IPage<ProductStockTmpVo> selectOfPage(@Param("pg") Page page, @Param("qs") ProductStockTmpQuery productStockTmpQuery);

   void selectByQuery(@Param("qs") ProductStockTmpQuery productStockTmpQuery);
}
